package com.yunchang.springboot.mapper.mwsreport;

import com.yunchang.springboot.models.mwsreportbean.MwsAllOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MwsAllOrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MwsAllOrder record);

    int insertSelective(MwsAllOrder record);

    MwsAllOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MwsAllOrder record);

    int updateByPrimaryKey(MwsAllOrder record);

    MwsAllOrder getOneInfoByAmazonOrderIdAndSkuAndAsin(@Param("amazonOrderId") String amazonOrderId, @Param("sku") String sku, @Param("asin") String asin, @Param("area") String area);

    String selectSalesChannelBySellerIdAndAmazonOrderId(String sellerId,String orderId);
}